package com.sudichina.sudichina.bean;


import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by ${杨伟乔} on 2017/3/14.
 * 邮箱: yangweiqiao@126.com
 * QQ: 463217558
 * 别人光鲜的背后或者有着太多不为人知的痛苦
 * 学习可以改变一切、 行动可以解决一切问题、
 */

public class Car implements Parcelable{


    @Override
    public String toString() {
        return "Car{" +
                "accountId=" + accountId +
                ", auditStatus=" + auditStatus +
                ", carCube=" + carCube +
                ", carDicId=" + carDicId +
                ", carFirstLetter='" + carFirstLetter + '\'' +
                ", carLenght=" + carLenght +
                ", carWeight=" + carWeight +
                ", cardNumber='" + cardNumber + '\'' +
                ", currentPage=" + currentPage +
                ", driveLicensePath='" + driveLicensePath + '\'' +
                ", driveLicensePath2='" + driveLicensePath2 + '\'' +
                ", engineNum='" + engineNum + '\'' +
                ", gmtCreate=" + gmtCreate +
                ", gmtModified=" + gmtModified +
                ", id=" + id +
                ", isDel=" + isDel +
                ", pageSize=" + pageSize +
                ", recordSource=" + recordSource +
                '}';
    }

    /**
     * accountId : 132
     * auditStatus : 2
     * carCube : 345
     * carDicId : 45
     * carFirstLetter : 浙
     * carLenght : 12
     * carWeight : 435
     * cardNumber : 558254
     * currentPage : 1
     * driveLicensePath : upload//2016//09//06//f1b626dd-9c36-4a42-b502-5e058313838a.jpg
     * driveLicensePath2 : upload//2016//09//06//dff2d553-946f-4e3d-ab8f-f0b508f8044e.jpg
     * engineNum : 557425846
     * gmtCreate : 1473127232000
     * gmtModified : 1473127232000
     * id : 65
     * isDel : false
     * pageSize : 5
     * recordSource : 0
     */


        private int accountId;
        private int auditStatus;
        private int carCube;
        private int carDicId;
        private String carFirstLetter;
        private int carLenght;
        private int carWeight;
        private String cardNumber;
        private int currentPage;
        private String driveLicensePath;
        private String driveLicensePath2;
        private String engineNum;
        private long gmtCreate;
        private long gmtModified;
        private int id;
        private boolean isDel;
        private int pageSize;
        private int recordSource;

    protected Car(Parcel in) {
        accountId = in.readInt();
        auditStatus = in.readInt();
        carCube = in.readInt();
        carDicId = in.readInt();
        carFirstLetter = in.readString();
        carLenght = in.readInt();
        carWeight = in.readInt();
        cardNumber = in.readString();
        currentPage = in.readInt();
        driveLicensePath = in.readString();
        driveLicensePath2 = in.readString();
        engineNum = in.readString();
        gmtCreate = in.readLong();
        gmtModified = in.readLong();
        id = in.readInt();
        isDel = in.readByte() != 0;
        pageSize = in.readInt();
        recordSource = in.readInt();
    }

    public static final Creator<Car> CREATOR = new Creator<Car>() {
        @Override
        public Car createFromParcel(Parcel in) {
            return new Car(in);
        }

        @Override
        public Car[] newArray(int size) {
            return new Car[size];
        }
    };

    public int getAccountId() {
            return accountId;
        }

        public void setAccountId(int accountId) {

            this.accountId = accountId;
        }

        public int getAuditStatus() {
            return auditStatus;
        }

        public void setAuditStatus(int auditStatus) {
            this.auditStatus = auditStatus;
        }

        public int getCarCube() {
            return carCube;
        }

        public void setCarCube(int carCube) {
            this.carCube = carCube;
        }

        public int getCarDicId() {
            return carDicId;
        }

        public void setCarDicId(int carDicId) {
            this.carDicId = carDicId;
        }

        public String getCarFirstLetter() {
            return carFirstLetter;
        }

        public void setCarFirstLetter(String carFirstLetter) {
            this.carFirstLetter = carFirstLetter;
        }

        public int getCarLenght() {
            return carLenght;
        }

        public void setCarLenght(int carLenght) {
            this.carLenght = carLenght;
        }

        public int getCarWeight() {
            return carWeight;
        }

        public void setCarWeight(int carWeight) {
            this.carWeight = carWeight;
        }

        public String getCardNumber() {
            return cardNumber;
        }

        public void setCardNumber(String cardNumber) {
            this.cardNumber = cardNumber;
        }

        public int getCurrentPage() {
            return currentPage;
        }

        public void setCurrentPage(int currentPage) {
            this.currentPage = currentPage;
        }

        public String getDriveLicensePath() {
            return driveLicensePath;
        }

        public void setDriveLicensePath(String driveLicensePath) {
            this.driveLicensePath = driveLicensePath;
        }

        public String getDriveLicensePath2() {
            return driveLicensePath2;
        }

        public void setDriveLicensePath2(String driveLicensePath2) {
            this.driveLicensePath2 = driveLicensePath2;
        }

        public String getEngineNum() {
            return engineNum;
        }

        public void setEngineNum(String engineNum) {
            this.engineNum = engineNum;
        }

        public long getGmtCreate() {
            return gmtCreate;
        }

        public void setGmtCreate(long gmtCreate) {
            this.gmtCreate = gmtCreate;
        }

        public long getGmtModified() {
            return gmtModified;
        }

        public void setGmtModified(long gmtModified) {
            this.gmtModified = gmtModified;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public boolean isIsDel() {
            return isDel;
        }

        public void setIsDel(boolean isDel) {
            this.isDel = isDel;
        }

        public int getPageSize() {
            return pageSize;
        }

        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }

        public int getRecordSource() {
            return recordSource;
        }

        public void setRecordSource(int recordSource) {
            this.recordSource = recordSource;
        }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(accountId);
        dest.writeInt(auditStatus);
        dest.writeInt(carCube);
        dest.writeInt(carDicId);
        dest.writeString(carFirstLetter);
        dest.writeInt(carLenght);
        dest.writeInt(carWeight);
        dest.writeString(cardNumber);
        dest.writeInt(currentPage);
        dest.writeString(driveLicensePath);
        dest.writeString(driveLicensePath2);
        dest.writeString(engineNum);
        dest.writeLong(gmtCreate);
        dest.writeLong(gmtModified);
        dest.writeInt(id);
        dest.writeByte((byte) (isDel ? 1 : 0));
        dest.writeInt(pageSize);
        dest.writeInt(recordSource);
    }
}

